package com.cloudptt.wp.ui.address.map.data;

import java.util.ArrayList;
import java.util.List;

import com.cloudptt.api.product.log.Log;

public class PointInfo {
	
	private long time;
	private Point point;
	
	public PointInfo(long time, Point point){
		this.time = time;
		this.point = point;
	}
	
	public long getTime() {
		return time;
	}
	
	public void setTime(long time) {
		this.time = time;
	}
	
	public Point getPoint() {
		return point;
	}
	
	public void setPoint(Point point) {
		this.point = point;
	}
	
	@Override
	public boolean equals(Object o) {
		if (o instanceof PointInfo) {
			PointInfo pointInfo = (PointInfo)o;
			return (pointInfo.getPoint().equals(this.getPoint()) && pointInfo.getTime() == this.getTime());
		} else {
			return false;
		}
	};
	
	

	public static List<PointInfo> list = new ArrayList<PointInfo>();
	
	static{
		int i = 0;
		while (i<3000) {
			double rate = i*0.00001 + 1;
			double latutude = rate * 32.038093030373815;
			double longitude = rate * 118.8116080638228;
			Point point = new Point(latutude,longitude,3);
			PointInfo info = new PointInfo(i,point);
			list.add(info);
			i++;
		}
	}
	
	public static List<PointInfo> getTestPointInfoList(String name)
	{	
		return list;
	}
	
	
	
}
